<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Han-mo-VideoTest</title>
    <link rel="stylesheet" href="lib/layui-v2.6.3/css/layui.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        video {
            position: fixed;
            top: 0;
            left: 0;
            object-fit: cover;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .box {
            width: 80%;
            min-height: 80vh;
            min-width: 920px;
            padding-top: 10px;
            box-sizing: border-box;
            border-radius: 30px;
            background-color: rgba(255, 255, 255, 0.337);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        
        .btns{
            /* border: 2px solid rgb(38, 214, 147); */
            width: 100%;
            height: 80%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }
        button {
            position: relative;
            background-color: #18beff6e;
            border: none;
            font-size: 20px;
            color: #FFFFFF;
            padding: 10px;
            margin: 10px;
            width: 150px;
            text-align: center;
            -webkit-transition-duration: 0.4s;
            /* Safari */
            transition-duration: 0.4s;
            text-decoration: none;
            overflow: hidden;
            cursor: pointer;
            border-radius: 10px;
            box-shadow: 1px 1px 1px 1px rgb(220, 239, 245);
        }

        button:hover {
            border-bottom-right-radius: 50px;
            border-top-left-radius: 50px;
            border-bottom-left-radius: 10px;
            border-top-right-radius: 10px;
        }


        button:after {
            content: "";
            background: #84ffff;
            display: block;
            position: absolute;
            padding-top: 300%;
            padding-left: 350%;
            margin-left: -20px !important;
            margin-top: -120%;
            opacity: 0;
            transition: all 0.8s
        }

    </style>
</head>

<body>
    <video autoplay loop muted
        src="//v.api.aa1.cn/api/ecybj-mp4/video/房间系列（二次元） (11)-（免费api:api.aa1.cn随机二次元房间背景视频系列v1）.mp4"></video>

    <div class="box">
        <div class="layui-form-item">
            <label class="layui-form-label" style="color: #2fa4d2;">输入框</label>
            <div class="layui-input-block" style="width: 150px;">
                <input id="text" type="text" name="title" required lay-verify="required" placeholder="请输入URL"
                    autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="btns">

        </div>
    </div>


    <script src="lib/layui-v2.6.3/layui.js"></script>
    <script src="lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
    <script>
                //解析接口配置
        //showType=1(仅PC), showType=2(仅mobile), showType=3(同时显示)
        const originalInterfaceList = [
            { "name": "纯净/B站", "url": "https://m1907.top/?jx=", "showType": 3 },
            { "name": "综合/B站", "url": "https://jx.bozrc.com:4433/player/?url=", "showType": 3 },
            { "name": "爱豆", "url": "https://jx.aidouer.net/?url=", "showType": 1 },
            { "name": "虾米", "url": "https://jx.xmflv.com/?url=", "showType": 1 },
            { "name": "OK解析", "url": "https://okjx.cc/?url=", "showType": 3 },
            { "name": "夜幕", "url": "https://www.yemu.xyz/?url=", "showType": 3 },
            { "name": "M3U8.TV", "url": "https://jx.m3u8.tv/jiexi/?url=", "showType": 3 },
            { "name": "人人迷", "url": "https://jx.blbo.cc:4433/?url=", "showType": 3 },
            { "name": "全民", "url": "https://jx.blbo.cc:4433/?url=", "showType": 3 },
            { "name": "七哥", "url": "https://jx.mmkv.cn/tv.php?url=", "showType": 3 },
            { "name": "冰豆", "url": "https://api.qianqi.net/vip/?url=", "showType": 3 },
            { "name": "迪奥", "url": "https://123.1dior.cn/?url=", "showType": 1 },
            { "name": "CK", "url": "https://www.ckplayer.vip/jiexi/?url=", "showType": 1 },
            { "name": "ckmov", "url": "https://www.ckmov.vip/api.php?url=", "showType": 1 },
            { "name": "playerjy/B站", "url": "https://jx.playerjy.com/?url=", "showType": 3 },
            { "name": "ccyjjd", "url": "https://ckmov.ccyjjd.com/ckmov/?url=", "showType": 1 },
            { "name": "诺诺", "url": "https://www.ckmov.com/?url=", "showType": 1 },
            { "name": "H8", "url": "https://www.h8jx.com/jiexi.php?url=", "showType": 1 },
            { "name": "BL", "url": "https://vip.bljiex.com/?v=", "showType": 1 },
            { "name": "解析la", "url": "https://api.jiexi.la/?url=", "showType": 1 },
            { "name": "MUTV", "url": "https://jiexi.janan.net/jiexi/?url=", "showType": 1 },
            { "name": "MAO", "url": "https://www.mtosz.com/m3u8.php?url=", "showType": 1 },
            { "name": "老板", "url": "https://vip.laobandq.com/jiexi.php?url=", "showType": 1 },
            { "name": "盘古", "url": "https://www.pangujiexi.cc/jiexi.php?url=", "showType": 1 },
            { "name": "盖世", "url": "https://www.gai4.com/?url=", "showType": 1 },
            { "name": "小蒋", "url": "https://www.kpezp.cn/jlexi.php?url=", "showType": 1 },
            { "name": "YiTV", "url": "https://jiexi.us/?url=", "showType": 1 },
            { "name": "星空", "url": "http://60jx.com/?url=", "showType": 1 },
            { "name": "0523", "url": "https://go.yh0523.cn/y.cy?url=", "showType": 1 },
            { "name": "17云", "url": "https://www.1717yun.com/jx/ty.php?url=", "showType": 1 },
            { "name": "4K", "url": "https://jx.4kdv.com/?url=", "showType": 1 },
            { "name": "8090", "url": "https://www.8090g.cn/?url=", "showType": 1 },
            { "name": "诺讯", "url": "https://www.nxflv.com/?url=", "showType": 1 },
            { "name": "听乐", "url": "https://jx.dj6u.com/?url=", "showType": 1 },
            { "name": "180", "url": "https://jx.000180.top/jx/?url=", "showType": 1 },
            { "name": "无名", "url": "https://www.administratorw.com/video.php?url=", "showType": 1 },
            { "name": "听乐(B站)", "url": "https://jx.dj6u.com/?url=", "showType": 2 },
        ];
        function allButtons() {
            for (const key in originalInterfaceList) {
                console.log(key);
                var eLement = $("<button onclick='black(this)'></button>").text(originalInterfaceList[key].name);
                eLement.attr("url", originalInterfaceList[key].url)
                $(".btns").append(eLement)
            }
        }
        allButtons();
        function black(eh) {
            console.log($(eh).attr("url"));
            let link = document.createElement("a")
            link.href = $(eh).attr("url") + $("#text").val()
            console.log("$('#text').val", $("#text").val());
            document.body.appendChild(link)
            $(link).attr("target", "_Blank")
            link.click()
            document.body.removeChild(link)
        }
        $.get("https://v.api.aa1.cn/api/ecybj-mp4/?type=json", function (res) {
            $("video").attr("src", res.mp4)
        }, "JSON")
    </script>
</body>

</html>